package com.xxzb.pack0823.线程同步.互斥同步;

public class 死锁Test {
    public static void main(String[] args) {
        final 死锁 siSuo=new 死锁();
        new Thread(new Runnable() {
            @Override
            public void run() {
                siSuo.fn1();
            }
        },"线程1").start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                siSuo.fn2();
            }
        },"线程2").start();
    }
}
